package org.example.demo.service.userService;

import org.example.demo.dto.PullUserCartItems;
import org.example.demo.dto.ShopCartParam;
import org.example.mbg.model.ProductByCart;
import org.example.mbg.model.ShopCart;

import java.util.HashMap;
import java.util.List;

/**
 * 购物车
 */
public interface ShopCartService {
    List<PullUserCartItems> listShopCart(Long user_id);

    ShopCart SelectShopCartByUserIdAndProductId(Long user_id, Long product_id);

    int addShopCart(Long user_id, Long product_id, Long count);

    String alterCart(Long orderId, Long quantity);

    int deleteShopCart(Long cartId);

    int clearAll(Long user_id);

    //购物车转化成初级订单
//    HashMap<String, Object> shopCartToOrder(ShopCartParam shopCartParams);
}
